-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add support for node16 module resolution #52
Conversation
Fixes module resolution with node16 ts configuration see: https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#package-json-exports-imports-and-self-referencing
😩 I have no idea how this managed to break things |
An ipjs compile problem. It's using the exports list to figure out what to compile. Either that needs to be fixed over there to ignore (and pass through) |
@Gozala on the original purpose of this - is there active breakage for not doing this here? Is this something we need to be doing across the board or just for this one because of the limited export scope? I'm not sure I understand what this is adding since we already have a |
There are several things here so I'll try to address them in bullet points below
If dependent package sets
I think we should start doing this everywhere we have
I don't know given the answers above, what do you think ?
It depends. If we're ok with saying either use It is also worth considering |
Would that imply dropping ipjs along with it ? If so, I honestly can't wait! |
Yeah, I think it's time. I'm over the dual publish and enough of the ecosystem has done it that I think we can get away with it with a semver-major bump. @achingbrain any objections to moving toward ESM-only in ipld packages? |
No objections from me - libp2p and ipfs are already ESM-only, forward to the glorious future! If typescript now supports |
Blocked until ipld/ipld#224 is completed |
this is done now as part of the ESM upgrade, should be in the latest published version |
Fixes module resolution with node16 ts configuration
see: https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#package-json-exports-imports-and-self-referencing